﻿//
// UserLoggedOnMessage.cs
//
// Authors:
//    Claus Jørgensen <10229@iha.dk>
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Messaging;

namespace RSD.ViewModel.Messages
{
    using Data;

    /// <summary>
    /// Message for when the user have logged on.
    /// </summary>
    public class UserLoggedOnMessage : MessageBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="T:UserLoggedOnMessage"/> class.
        /// </summary>
        /// <param name="user">The authenticated user.</param>
        public UserLoggedOnMessage(User user)
        {                   
            this.User = user;            
        }

        /// <summary>
        /// Gets the authenticated user.
        /// </summary>
        /// <value>The authenticated user.</value>
        public User User
        {
            get;
            private set;
        }
    }
}
